a33caf487a1d8fce18b7c5b41243add50a4e99b4,servers/src/main/java/tachyon/worker/block/TieredBlockStore.java,TieredBlockStore,removeBlockNoLock,#number#number#,350

Before Change


    }
    BlockMeta block = optBlock.get();
    // Delete metadata of the block
    if (!mMetaManager.removeBlockMeta(block)) {
      LOG.error("Unable to remove metadata");
      return false;
    }
    // Delete the data file of the block
    if (!new File(block.getPath()).delete()) {

After Change



    BlockMeta blockMeta = mMetaManager.getBlockMeta(blockId);
    // Delete metadata of the block
    mMetaManager.removeBlockMeta(blockMeta);

    // Delete the data file of the block
    if (!new File(blockMeta.getPath()).delete()) {